<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/11/27 0027
  Time: 14:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
  <button id="one" onclick="run()">加载</button>
  <div id="two">
      <table>
          <tr align="center">

          </tr>
      </table>


  </div>
  <script type="text/javascript">
      function run(){
          var two = document.getElementById("two");
          var request = new XMLHttpRequest();
          request.onreadystatechange=function(){
          if(request.readyState==4 && request.status==200){
              var text = request.responseText;
              two.innerHTML=text;
          }

          }
          request.open("GET","/load");
          request.send();

      }
  </script>
  </body>
</html>
